<div class="span10" id="_content" style="background: #fff;margin-left: 2px;padding:10px 15px;">
<table width="100%" style="margin: 0;padding: 0;">
    <tr>
        <td class="hzbar"></td>
        <td style="padding: 10px 15px;">
<?php echo $this->session->flashdata('_message'); ?>
<!-- Modal Form -->

<?php echo anchor('administrator/menu/index/create','<i class="icon-plus"></i>Add new menu','class="btn"'); ?>
<div style="margin-bottom: 15px;"></div>
<?php
if(!empty($menus)){
?>
    <table class="table table-striped table-bordered table-condensed">
        <?php 
            foreach($menus as $menu):
        ?>
        <tr>
            <td><?php echo  $menu->menu_id ?></td>
            <td><?php
                $menuname = $this->_global->_unserialize($menu->menu_name);
                echo $menuname[$this->session->userdata('lan')]['menu_name'];
                //var_dump($catname);
            ?></td>
            <td><?php
                $menutitle = $this->_global->_unserialize($menu->menu_title);
                echo $menutitle[$this->session->userdata('lan')]['menu_title'];
                //var_dump($catname);
            ?></td>
            <td>
            <?php echo anchor('administrator/menu/index/edit/'.$menu->menu_id,'<i class="icon-edit"></i> Edit', 'class="btn action"') ?>
            </td>
            <td>
<?php echo anchor('administrator/menu/index/delete/'.$menu->menu_id,'<i class="icon-remove"></i> Delete', 'class="btn action" onclick="return confirm(\'Do you want to delete this menu?\')"') ?>
            </td>
        </tr>
        <?php endforeach; ?>
    </table>
<?php
}else{
    echo '<div class="alert alert-info"><h4 class="alert-heading">Thông báo!</h4>Chưa có menu nào...</div>';
}
?></td></tr></table>
</div>